﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="duty_interval.aspx.cs" Inherits="AnyOffice.general.system.attend.duty_interval" %>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<HTML>
	<HEAD>
		<title></title>
		<meta name="GENERATOR" Content="Microsoft Visual Studio .NET 7.1">
		<meta name="CODE_LANGUAGE" Content="C#">
		<meta name="vs_defaultClientScript" content="JavaScript">
		<meta name="vs_targetSchema" content="http://schemas.microsoft.com/intellisense/ie5">
		<script src="/aspnet_client/core/function.js"></script>
		<script language="JavaScript">
function CheckForm()
{
	if(document.Form1.txtBefore1.value == "")
   {
	 alert("上班提前 分钟允许登记不能为空！");
	 document.Form1.txtBefore1.focus();
	 return (false);
   }    
   if(!checkIsInteger(document.Form1.txtBefore1.value))
   {
	 alert("上班提前 分钟允许登记必须为整数！");
	 document.Form1.txtBefore1.focus();
	 return (false);
   }  
   
   if(document.Form1.txtAfter1.value == "")
   {
	 alert("上班延后 分钟允许登记不能为空！");
	 document.Form1.txtAfter1.focus();
	 return (false);
   }    
   if(!checkIsInteger(document.Form1.txtAfter1.value))
   {
	 alert("上班延后 分钟允许登记必须为整数！");
	 document.Form1.txtAfter1.focus();
	 return (false);
   }   
   
 if(document.Form1.txtBefore2.value == "")
   {
	 alert("下班提前 分钟允许登记不能为空！");
	 document.Form1.txtBefore2.focus();
	 return (false);
   }    
   if(!checkIsInteger(document.Form1.txtBefore2.value))
   {
	 alert("下班提前 分钟允许登记必须为整数！");
	 document.Form1.txtBefore2.focus();
	 return (false);
   }  
   
   if(document.Form1.txtAfter2.value == "")
   {
	 alert("下班延后 分钟允许登记不能为空！");
	 document.Form1.txtAfter2.focus();
	 return (false);
   }    
   if(!checkIsInteger(document.Form1.txtAfter2.value))
   {
	 alert("下班延后 分钟允许登记必须为整数！");
	 document.Form1.txtAfter2.focus();
	 return (false);
   }    
   return true;
}
		</script>
	</HEAD>
	<body class="bodycolor" topmargin="5">
		<form id="Form1" method="post" runat="server">
			<asp:Panel id="pnlMain" runat="server">
				<TABLE class="small" cellSpacing="0" cellPadding="3" width="100%" border="0">
					<TR>
						<TD class="Big"><IMG src="/images/menu/attendance.gif" align="absMiddle"><SPAN class="big3">
								设置上下班登记时间段</SPAN><BR>
						</TD>
					</TR>
				</TABLE>
				<BR>
				<TABLE class="small" cellSpacing="1" cellPadding="3" width="400" align="center" bgColor="#000000"
					border="0">
					<TR>
						<TD class="TableHeader">设置上班登记时间段</TD>
					</TR>
					<TR>
						<TD class="TableData">提前 <INPUT class="SmallInput" id="txtBefore1" type="text" maxLength="4" size="5" runat="server">
							分钟允许登记</TD>
					</TR>
					<TR>
						<TD class="TableData">延后 <INPUT class="SmallInput" id="txtAfter1" type="text" maxLength="4" size="5" runat="server">
							分钟允许登记</TD>
					</TR>
					<TR>
						<TD class="TableHeader">设置下班登记时间段</TD>
					</TR>
					<TR>
						<TD class="TableData">提前 <INPUT class="SmallInput" id="txtBefore2" type="text" maxLength="4" size="5" runat="server">
							分钟允许登记</TD>
					</TR>
					<TR>
						<TD class="TableData" style="HEIGHT: 30px">延后 <INPUT class="SmallInput" id="txtAfter2" type="text" maxLength="4" size="5" runat="server">
							分钟允许登记</TD>
					</TR>
					<TR>
						<TD class="TableControl" noWrap align="center" colSpan="2"><INPUT class="BigButton" title="确定" onclick="return CheckForm();" type="submit" value="确定"
								name="button">&nbsp; <INPUT class="BigButton" title="返回" onclick="location='index.aspx'" type="button" value="返回">
						</TD>
					</TR>
				</TABLE>
			</asp:Panel>
			<asp:Literal id="litMessage" runat="server"></asp:Literal>
		</form>
	</body>
</HTML>
